#include "DM_motor/GetDMFactory.h"
#include "DM_motor/functionMenu.h"
namespace DM_motor {
	static std::shared_ptr<functionMenu> menuInstance = nullptr;
	static std::once_flag menuFlag;
	std::shared_ptr<functionMenu> GetDMFactory::getFunctionMenu() {
		std::call_once(menuFlag, [&] {
			menuInstance = std::shared_ptr<functionMenu>(new functionMenu());
			});
		return menuInstance;
	}
}
